package com.paradisecloudtech.vc.system.mvp.model;


import com.paradisecloudtech.vc.system.mvp.bean.ConfsBean;
import com.paradisecloudtech.vc.system.mvp.manager.ServiceManager;

import io.reactivex.Observable;
import okhttp3.MediaType;
import okhttp3.RequestBody;

public class ConfsModel {

    private ServiceManager serviceManager;

    public ConfsModel() {
        serviceManager=new ServiceManager();
    }

    public Observable<ConfsBean> requestConfsData(int status){
        String json="{\"status\":"+status+" }";
        RequestBody body = RequestBody.create(MediaType.parse("application/json; charset=utf-8"), json);
        return serviceManager.requestConfsData(body);
    }
}
